package com.wzdigit.wms.basic.client.request.transfer;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 确认分配库存输入
 * 
 * @author yangdongjie
 * @param <T>
 * @param <T>
 * @GetWarehouseListRequest.java
 * @2020年12月31日下午3:40:49
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler", "fieldHandler" }, ignoreUnknown = true)
public class ConfirmInvZoneItemRequest implements Serializable {

	private static final long serialVersionUID = -5812482285373909439L;

	/**
	 * 是否手工分配
	 */
	@ApiModelProperty(value = "是否手工分配", required = false)
	private Boolean manualDeal;
	
	/**
	 * 仓库ID
	 */
	@ApiModelProperty(value = "仓库ID", required = true)
	@NotNull(message = "仓库ID不能为空")
	private Integer whsId;
	
	/**
	 * 仓库编码
	 */
	@ApiModelProperty(value = "仓库编码", required = true)
	@NotBlank(message = "仓库编码不能为空")
	private String whsCode;
	
	/**
	 * 仓库名称
	 */
	@ApiModelProperty(value = "仓库名称", required = false)
	private String whsName;

	/**
	 * 分配数量
	 */
	@ApiModelProperty(value = "分配数量", required = true)
	@NotNull(message = "分配数量不能为空")
	@Min(value = 1, message = "分配数量不能小于1")
	private BigDecimal qty;
}
